package cn.zhouchao.pet.domain;

import cn.zhouchao.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouchao
 * @since 2023-03-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PetType extends BaseDomain{

    /**
     * 名称
     */
    private String name;
    /**
     * 描述介绍
     */
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    private PetType parent;

    //子级
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children=new ArrayList<>();


}
